package com.sql;

/**
 * Created with IntelliJ IDEA.
 * User: sxlju_000
 * Date: 13-11-1
 * Time: 下午9:57
 * To change this template use File | Settings | File Templates.
 */
public class FieldMeta {
    private String fieldName;
    private String columnName;
    private String type;
    private Long length;
    private boolean isNull;
    private boolean isPrimaryKey;
    private String defaultValue;
    private GenerateValueType generateValueType;
    private ForeignKeyMeta foreignKeyMeta;
    //now is no fk

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getLength() {
        return length;
    }

    public void setLength(Long length) {
        this.length = length;
    }

    public boolean isNull() {
        return isNull;
    }

    public void setNull(boolean aNull) {
        isNull = aNull;
    }

    public boolean isPrimaryKey() {
        return isPrimaryKey;
    }

    public void setPrimaryKey(boolean primaryKey) {
        isPrimaryKey = primaryKey;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public GenerateValueType getGenerateValueType() {
        return generateValueType;
    }

    public void setGenerateValueType(GenerateValueType generateValueType) {
        this.generateValueType = generateValueType;
    }

    public ForeignKeyMeta getForeignKeyMeta() {
        return foreignKeyMeta;
    }

    public void setForeignKeyMeta(ForeignKeyMeta foreignKeyMeta) {
        this.foreignKeyMeta = foreignKeyMeta;
    }
}
